public class TestMode {
    public static void main(String[] args) {
        int i = 5;
        int j = 0;
        int count = 0;
        for (j = 1; j <= i; j++) {

            if(i%j == 0){
                count++;
            }
        }
        if(count == 2){
            System.out.println(i+"是素数");
        }else{
            System.out.println(i+"不是素数");
        }
    }
}
